package com.spring.gop.proj.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.spring.gop.proj.dao.mapper.EventMapper;
import com.spring.gop.proj.interfaces.EventDao;
import com.spring.gop.proj.model.Event;

@Repository
public class EventDaoImpl implements EventDao {
	
	@Autowired EventMapper eventMapper;

	public List<Event> selectEvents(String startDate, String endDate) {
		return eventMapper.selectEvents(startDate, endDate);
	}
	
	public List<Event> selectLastEvent(String startDate, String endDate) {
		return eventMapper.selectLastEvent(startDate, endDate);
	}
	
	public Event selectEvent(int event_num) {
		return eventMapper.selectEvent(event_num);
	}
}